package edu.hwadee.BEIS.constants;

/**
 * 用户类自定义异常
 * @author kingsong
 *
 */
public class CustomException extends RuntimeException {

	private static final long serialVersionUID = 909644362265829719L;
	
	private Integer code;  // 错误码
	
	 public CustomException(ResultEnum resultEnum) {
	        super(resultEnum.getMsg());
	        this.code = resultEnum.getCode();
	    }

	    public Integer getCode() {
	        return code;
	    }

	    public void setCode(Integer code) {
	        this.code = code;
	    }
	
	
}
